﻿<Window x:Class="VisualPrint.PreviewWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Pirnt Preview" Closed="OnClosed"  Loaded="Window_Loaded" 
>
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Style.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="26"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Menu Grid.Row="0" Height="22" HorizontalAlignment="Left" Name="PrintMenu" VerticalAlignment="Top" Background="Transparent">
            <MenuItem Icon="{StaticResource Printer}" Click="OnPrintClick"/>
        </Menu>
        <DockPanel Grid.Row="1" Name="DocumentPanel">
            <FlowDocumentReader Name="Viewer"/>
        </DockPanel>
    </Grid>
</Window>
